package com.example.financechain.service;

import com.example.financechain.Utils.JsonData;
import com.example.financechain.domain.DTO.AuditBusiness;
import com.example.financechain.domain.entity.Business;
import com.baomidou.mybatisplus.extension.service.IService;
import org.hyperledger.fabric.gateway.ContractException;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.cert.CertificateException;
import java.util.concurrent.TimeoutException;

/**
 * <p>
 * 订单信息表 服务类
 * </p>
 *
 * @author yy
 * @since 2023-04-22
 */
public interface IBusinessService extends IService<Business> {

    JsonData createBusiness(Business business);

    JsonData querybusiness();

    JsonData querybusinessbyId(Long id);


    JsonData queryStart();

    JsonData auditBusiness(AuditBusiness auditBusiness) throws ContractException, CertificateException, IOException, InvalidKeyException, InterruptedException, TimeoutException;
}
